package com.anolesoft;

import com.anolesoft.common.redis.service.RedisService;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.concurrent.TimeUnit;

//@SpringBootTest
public class test {

    @Autowired
    private RedisService redisService;

    @Test
    public void execute() {
//        System.out.println(redisService);
//        redisService.setCacheMapValue("username:123", "wangjiaxin", "{'name':'王嘉鑫'}");
//        redisService.setCacheMapValue("username:234", "wangcong", "{'name':'王聪'}");
//
//        redisService.expire("username", 10, TimeUnit.SECONDS);

        System.out.println((int)'a');
        System.out.println((int)'b');
        System.out.println((int)'c');
        System.out.println((int)'d');
        System.out.println((int)'e');
        System.out.println((int)'f');
        System.out.println((int)'g');
    }

}
